import requests from '@/utils/request'
// 获取权限列表
export const getPermissionsList = (params) => requests({ url: '/permissions', params })
// 获取权限数量
export const getPermissionsNum = () => requests({ url: '/permissions/count' })
// 获取指定角色
export const getIdPermissions = (id) => requests({ url: '/permissions/' + id })
// 新建角色
export const addPermissions = (data) => requests({ url: '/permissions', data, method: 'POST' })
// 编辑角色
export const editPermissions = (data) => requests({ url: '/permissions/' + data.id, method: 'put', data })
// 删除角色
export const delPermissions = (id) => requests({ url: '/permissions/' + id, method: 'delete' })
